/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.jsc.app.base.service;

import java.util.List;

/**
 *
 * @author Jeff
 */
public interface Service<D> {
    /*public void saveOrUpdate(D domain);

    public void saveOrUpdateList(List<D> domain);
    */
    public void save(D domain);

    public void update(D domain);

    public void delete(D domain);

//    public void deleteList(List<D> domain);

//    public void deleteByExample(D domain);

    public D findById(Object id);

    public List<D> getAll();

    public List<D> findByExample(D domain);

    public List<D> findByProperty(String property, Object value);
}
